/*
* Created: 2012-03-05 Daly 
*/

#ifndef _XNT_BASE_H_
#define _XNT_BASE_H_

#ifdef __cplusplus
extern "C" {
#endif


#define XNT_RET_OK 0
#define XNT_RET_ERR -1   //normal error

#define XNT_RET_PARAM_INVALID -2   //function param invalid
#define XNT_RET_FULL  -3     //the capacity is full
#define XNT_RET_NOT_READY -4   


#define XNT_ASSERT(expr) (void)((expr) || (xnt_assert(#expr, __FILE__, __FUNCTION__, __LINE__), 0))

void xnt_assert(const char *expr, const char* file, const char* func, int line);

#ifdef __cplusplus
}
#endif

#endif
